package cn.chenhao.product.domain;

import cn.chenhao.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 服务模块
 */
@Data
public class Product extends BasicDomain {

    /* 服务名称 */
    private String name;
    /* 服务相关的资源 */
    private String resources;
    /* 销售价格 */
    private BigDecimal saleprice;
    /* 下架时间 */
    @JsonFormat(pattern = "yy-MM-dd",timezone = "GMT+8")
    private Date offsaletime;
    /* 上架时间 */
    @JsonFormat(pattern = "yy-MM-dd",timezone = "GMT+8")
    private Date onsaletime;
    /* 状态 */
    private Long state;
    /* 成本价 */
    private String costprice;
    /* 创建时间 */
    @JsonFormat(pattern = "yy-MM-dd",timezone = "GMT+8")
    private Date createtime = new Date();
    /* 销量 */
    private Long salecount;


}
